import React from 'react';
import ReactDOM from 'react-dom';
import './static'; //静态函数
import RouterIndex from './router'; //路由
import * as serviceWorker from './serviceWorker';
import { Provider } from 'react-redux';  //引入react-redux
import store from './store/';    //引入store，类似于vuex的store,即全局状态管理

import {ThemeContext} from './context/theme-context';
import core from './core/index';    //引入store，类似于vuex的store,即全局状态管理
window.scroll=core.scroll;
ReactDOM.render(
    <ThemeContext.Provider value={"dark"}>
        <Provider store={store}>
            <RouterIndex  store={store}/>
        </Provider>
    </ThemeContext.Provider>,
    document.getElementById('root'));
serviceWorker.unregister();
